package com.liaoyifan.core.config;

import com.liaoyifan.core.constant.Constants;
import com.liaoyifan.core.constant.Properties;
import com.liaoyifan.core.opera.GlobalExceptionHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(GlobalExceptionHandler.class)
@ConditionalOnProperty(
        name = Properties.GLOBAL_EXCEPTION_HANDLER_ENABLE,
        havingValue = Constants.TRUE)
public class GlobalExceptionHandlerConfiguration {}
